package org.jxf.gps.jt808.nettysample.test;

import org.jboss.netty.channel.ChannelPipeline;
import org.jboss.netty.channel.ChannelPipelineFactory;
import org.jboss.netty.channel.Channels;
import org.jxf.gps.jt808.server.UDPServerHandler;

public class UDPChannelPipelineFactory implements ChannelPipelineFactory{
    
    /**
     * set the channel pipeline
     * 
     */

    public ChannelPipeline getPipeline() throws Exception {
        ChannelPipeline pipeline = Channels.pipeline();
        pipeline.addLast("handler", new UDPServerHandler());
        return pipeline;
    }
}